/**
 *
 */
package com.zhuoyue.elmt.service;

import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eit.eitsite.common.persistence.Page;
import com.eit.eitsite.common.service.CrudService;
import com.zhuoyue.elmt.entity.WbMtGroupStaff;
import com.zhuoyue.elmt.dao.WbMtGroupStaffDao;

/**
 * 小组和人员的关联Service
 *
 * @author JiangYH
 * @version 2017-02-08
 */
@Service
@Transactional(readOnly = true)
public class WbMtGroupStaffService extends CrudService<WbMtGroupStaffDao, WbMtGroupStaff> {

    public WbMtGroupStaff get(String id) {
        return super.get(id);
    }

    public List<WbMtGroupStaff> findList(WbMtGroupStaff wbMtGroupStaff) {
        return super.findList(wbMtGroupStaff);
    }

    public Page<WbMtGroupStaff> findPage(Page<WbMtGroupStaff> page, WbMtGroupStaff wbMtGroupStaff) {
        return super.findPage(page, wbMtGroupStaff);
    }

    @Transactional(readOnly = false)
    public void save(WbMtGroupStaff wbMtGroupStaff) {
        super.save(wbMtGroupStaff);
    }

    @Transactional(readOnly = false)
    public void save(List<WbMtGroupStaff> wbMtGroupStaffList) {
        for (WbMtGroupStaff wbMtGroupStaff : wbMtGroupStaffList) {
            super.save(wbMtGroupStaff);
        }
    }

    @Transactional(readOnly = false)
    public void delete(WbMtGroupStaff wbMtGroupStaff) {
        super.delete(wbMtGroupStaff);
    }

    @Transactional(readOnly = false)
    public void deleterela(WbMtGroupStaff wbMtGroupStaff) {
        dao.deleterela(wbMtGroupStaff);
    }

    @Transactional(readOnly = false)
    public void updateSysOfficePrimaryPerson(HashMap map){
         dao.updateSysOfficePrimaryPerson(map);
    }
}